package cn.dqy.gotanserver.dto;

public class R<T> {
    long code;
    String msg;
    T obj;
    public static <T> R build(long code,String msg,T obj){
        R r = new R();
        r.setCode(code);
        r.setMsg(msg);
        r.setObj(obj);
        return r;
    }

    public long getCode() {
        return code;
    }

    public void setCode(long code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getObj() {
        return obj;
    }

    public void setObj(T obj) {
        this.obj = obj;
    }
}
